package com.zhh.common;

public enum ResponseCode {

    ERROR(-1,"ERROR"),
    SUCCESS(0,"SUCCESS"),
    NEED_LOGIN(401,"NEED_LOGIN"),
    NO_PERMISSION(402,"NO_PERMISSION"),
    ILLEGAL_ARGUMENT(10001,"ILLEGAL_ARGUMENT");

    private final int code;
    private final String desc;


    ResponseCode(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return code;
    }
    public String getDesc(){
        return desc;
    }
}
